import Taro from "@tarojs/taro";

export async function showPrompt(option:Taro.showModal.Option){
    let result = await Taro.showModal({
        ...option,
        // @ts-ignore
        editable:true,
    });
    if (result.confirm) {
        // @ts-ignore
        return result.content as string
    }
    throw Error(result.errMsg)
}